package com.bdqn.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;

/**
 *定义包含增强方法的JavaBean
 */
@Aspect
public class AfterLogger {
    private static final Logger log = Logger.getLogger(AfterLogger.class);

    @After("execution(* com.bdqn.service.UserService.*(..))")
    public void afterLogger(JoinPoint jp){
        log.error(jp.getSignature().getName() + " 方法结束执行： ");
    }
}
